'use strict';

var __importDefault =
    (this && this.__importDefault) ||
    function (mod) {
        return mod && mod.__esModule
            ? mod
            : {
                  default: mod
              };
    };

exports.__esModule = true;
/*
  两种网络请求：postRequest => POST, getRequest => GET
  请求头header: 默认json，支持自定义({})或快速写入('form', 'json')
*/

var request_1 = require('../../utils/request');

var globalData_1 = require('../../globalData');

var request = new request_1['default']({
    ApiUrl: globalData_1['default'].URL
}); //获取验证码-图片流

exports.getPcVerifyCode = function () {
    return request.getRequest({
        url: 'config-service/user/verifyCode'
    });
}; // 获取验证码-数据流

exports.getPcGetVerifyCode = function () {
    // return request.getRequest({
    //     url: 'config-service/user/getVerifyCode'
    // })
}; // 获取营销获客(也就是后台管理系统的)Token

exports.getMarketingToken = function (params) {
    return request.postRequest({
        url: 'config-service/user/login',
        data: params
    });
};
